package com.kehutong.wxapi.response;

import org.coraframework.json.annotation.JSONField;

import java.util.List;

/**
 * 获取部门列表响应对象
 * @author: liukunlong
 * @date: 2021-03-08 17:28
 */
public class DepartmentListResponse {

    /**
     * errcode
     */ /**
     * errcode : 0
     * errmsg : ok
     * department : [{"id":2,"name":"广州研发中心","name_en":"RDGZ","parentid":1,"order":10},{"id":3,"name":"邮箱产品部","name_en":"mail","parentid":2,"order":40}]
     */

    @JSONField(name = "errcode")
    private Integer errcode;
    /**
     * errmsg
     */
    @JSONField(name = "errmsg")
    private String errmsg;
    /**
     * department
     */
    @JSONField(name = "department")
    private List<DepartmentDTO> department;

    public Integer getErrcode() {
        return errcode;
    }

    public void setErrcode(Integer errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public List<DepartmentDTO> getDepartment() {
        return department;
    }

    public void setDepartment(List<DepartmentDTO> department) {
        this.department = department;
    }

    public static class DepartmentDTO {
        /**
         * id
         */ /**
         * id : 2
         * name : 广州研发中心
         * name_en : RDGZ
         * parentid : 1
         * order : 10
         */

        @JSONField(name = "id")
        private Integer id;
        /**
         * name
         */
        @JSONField(name = "name")
        private String name;
        /**
         * nameEn
         */
        @JSONField(name = "name_en")
        private String nameEn;
        /**
         * parentid
         */
        @JSONField(name = "parentid")
        private Integer parentid;
        /**
         * order
         */
        @JSONField(name = "order")
        private Integer order;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getNameEn() {
            return nameEn;
        }

        public void setNameEn(String nameEn) {
            this.nameEn = nameEn;
        }

        public Integer getParentid() {
            return parentid;
        }

        public void setParentid(Integer parentid) {
            this.parentid = parentid;
        }

        public Integer getOrder() {
            return order;
        }

        public void setOrder(Integer order) {
            this.order = order;
        }
    }
}
